{%extends "MssaeSeoBundle::layout.html.twig"%}
{%block body%}
<h1>TypeAnnuaire</h1>

{%if is_granted('ROLE_ADMIN')%} 
<table class="record_properties">
    <tbody>
        <tr>
            <th>Id</th>
            <td>{{ entity.id }}</td>
        </tr>
        <tr>
            <th>Libelle</th>
            <td>{{ entity.libelle }}</td>
        </tr>
        <tr>
            <th>Satut</th>
            <td>{{ entity.satut }}</td>
        </tr>
    </tbody>
</table>

<ul class="record_actions">
    <li>
        <a href="{{ path('typeannuaire',{'page' : 1}) }}">
            Back to the list
        </a>
    </li>
    <li>
        <a href="{{ path('typeannuaire_new') }}">
            New
        </a>
    </li>
    <li>
        <a href="{{ path('typeannuaire_edit', { 'id': entity.id }) }}">
            Edit
        </a>
    </li>
    <li>
        <form action="{{ path('typeannuaire_delete', { 'id': entity.id }) }}" method="post">
            {{ form_widget(delete_form) }}
            <button type="submit">Delete</button>
        </form>
    </li>
</ul>
{%else%}
    <div id ="error">
        Vous n'avez pas les droits néccessaires pour cette action
    </div>
{%endif%}
{%endblock%}